x86/speculation: Make all RETbleed mitigations depend on X86_64
authorBen Hutchings <ben@decadent.org.uk>
Sat, 23 Jul 2022 14:20:34 +0000 (16:20 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Wed, 10 Aug 2022 18:11:48 +0000 (19:11 +0100)
commit582794738a4798e728e3451372235d5c193f708d
tree576cda4cbe753610b86a192d7dadc57afab76537
parentfa7a356ae3f5806c8f67ec30a7356e466515137b
x86/speculation: Make all RETbleed mitigations depend on X86_64

Forwarded: https://lore.kernel.org/lkml/YtwSR3NNsWp1ohfV@decadent.org.uk/T/

The mitigations for RETBleed are currently ineffective on x86_32 since
entry_32.S does not use the required macros.  However, for an x86_32
target, the kconfig symbols for them are still enabled by default and
/sys/devices/system/cpu/vulnerabilities/retbleed will wrongly report
that mitigations are in place.

Make all of these symbols depend on X86_64, and only enable RETHUNK by
default on X86_64.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name x86-speculation-make-all-retbleed-mitigations-depend.patch
arch/x86/Kconfig